/*  1:   */ package org.intellij.lang.regexp.psi.impl;
/*  2:   */ 
/*  3:   */

import com.intellij.lang.ASTNode;
import com.intellij.psi.util.PsiTreeUtil;
import org.intellij.lang.regexp.RegExpElementTypes;
import org.intellij.lang.regexp.psi.RegExpAtom;
import org.intellij.lang.regexp.psi.RegExpClosure;
import org.intellij.lang.regexp.psi.RegExpElementVisitor;
import org.intellij.lang.regexp.psi.RegExpQuantifier;
import org.jetbrains.annotations.NotNull;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */
/* 11:   */ 
/* 12:   */ public class RegExpClosureImpl
/* 13:   */   extends RegExpElementImpl
/* 14:   */   implements RegExpClosure
/* 15:   */ {
/* 16:   */   public RegExpClosureImpl(ASTNode paramASTNode)
/* 17:   */   {
/* 18:32 */     super(paramASTNode);
/* 19:   */   }
/* 20:   */   
/* 21:   */   public void accept(RegExpElementVisitor paramRegExpElementVisitor)
/* 22:   */   {
/* 23:36 */     paramRegExpElementVisitor.visitRegExpClosure(this);
/* 24:   */   }
/* 25:   */   
/* 26:   */   @NotNull
/* 27:   */   public RegExpQuantifier getQuantifier()
/* 28:   */   {
/* 29:41 */     ASTNode localASTNode = getNode().findChildByType(RegExpElementTypes.QUANTIFIER);
/* 30:42 */     assert (localASTNode != null); RegExpQuantifier 
/* 31:43 */       tmp40_37 = ((RegExpQuantifier)localASTNode.getPsi());
/* 32:43 */     if (tmp40_37 == null) {
/* 33:43 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/psi/impl/RegExpClosureImpl", "getQuantifier" }));
/* 34:   */     }
/* 35:43 */     return tmp40_37;
/* 36:   */   }
/* 37:   */   
/* 38:   */   @NotNull
/* 39:   */   public RegExpAtom getAtom()
/* 40:   */   {
/* 41:48 */     RegExpAtom localRegExpAtom = (RegExpAtom)PsiTreeUtil.getChildOfType(this, RegExpAtom.class);
/* 42:49 */     assert (localRegExpAtom != null); RegExpAtom 
/* 43:50 */       tmp29_28 = localRegExpAtom;
/* 44:50 */     if (tmp29_28 == null) {
/* 45:50 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/lang/regexp/psi/impl/RegExpClosureImpl", "getAtom" }));
/* 46:   */     }
/* 47:50 */     return tmp29_28;
/* 48:   */   }
/* 49:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.lang.regexp.psi.impl.RegExpClosureImpl

 * JD-Core Version:    0.7.0.1

 */